package com.godyao.framework.beans.factory.support;

import com.godyao.framework.core.io.Resource;
import com.godyao.framework.core.io.ResourceLoader;

/**
 * Bean定义读取接口
 * @author missw
 */
public interface BeanDefinitionReader {
    /**
     * 获取到bean注册信息
     * @return
     */
    BeanDefinitionRegistry getRegistry();

    /**
     * 获取资源加载其
     * @return
     */
    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource);

    void loadBeanDefinitions(Resource... resources);

    void loadBeanDefinitions(String location);

    void loadBeanDefinitions(String[] locations);
}
